package com.ny.zmb.openapi.enums;

import com.sun.istack.NotNull;
import lombok.Data;
import lombok.Getter;

@Getter
public enum CodeEnum {
    SYS000("SYS000", "网关受理成功，具体判断业务subCode是否成功"),
    SYS001("SYS001", "网关受理中"),
    SYS003("SYS003", "网关系统操作失败，具体看msg错误描述"),
    SYS004("SYS004", "网关响应失败，具体看msg错误描述"),
    SYS005("SYS005", "网关参数校验错误，具体看msg错误描述"),
    UN_KNOW("UN_KNOW", "未知状态"),
    ;

    private final String code; // 字段不应为 static
    private final String msg;

    // 构造函数
    CodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String toString() {
        return code + ": " + msg; // 可选，方便调试和输出
    }
}
